<template>
    <div class="detail">
        <div class="top">
            <div class="title">{{hospitalStore.hospitalInfo.hospital?.hosname}}</div>
            <div class="level">
                <i class="ri-thumb-up-line"></i><span>{{hospitalStore.hospitalInfo.hospital?.param.hostypeString}}</span>
            </div>
        </div>

        <div class="content">
            <div class="left">
                <img class="img" :src="`data:image/jpeg;base64,${hospitalStore.hospitalInfo.hospital?.logoData}`" alt="">
            </div>
            <div class="right">乘车路线：{{ hospitalStore.hospitalInfo.hospital?.route }}</div>
            
        </div>
    </div>
</template>

<script setup lang="ts">
import 'remixicon/fonts/remixicon.css'
import useDetailStore from '@/store/modules/hospitalDetail'
let hospitalStore = useDetailStore()
</script>

<style scoped lang="scss">
.detail{
    .top{
        display: flex;
        .title{
            font-size: 30px;
            font-weight: bold;
        }
        .level{
            color: rgb(87, 87, 87);
            font-size: 14px;
            margin-left: 30px;
            line-height: 30px;
            text-align: center;
        }
    
    } 

    .content{
        display: flex;
        margin-top: 30px;
        .left{
            width: 80px;
            .img{
                width: 80px;
                height: 80px;
            }
        }
        .right{
            margin-left: 30px;
        }
    }
}
</style>